package cn.tedu._05interceptor.controller;

import cn.tedu._05interceptor.mapper.UserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/v1/user/")
public class UserController {
    @Autowired
    private UserMapper userMapper;



    @GetMapping("reg")
    public String reg(){
        return "注册成功！";
    }

    @GetMapping("login")
    public String login(){
        return "登录成功！";
    }

    @GetMapping("logout")
    public String logout(){
        return "退出成功！";
    }
}
